CopyTo(Int32,T[],Int32,Int32) Method
In This Topic
Copies the entire
ListBase<T> to a compatible one-dimensional array, starting at the beginning of the target array.
Syntax
'Declaration
Public Overloads Sub CopyTo( _
ByVal As Integer, _
ByVal () As , _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim instance As ListBase(Of T)
Dim index As Integer
Dim array() As
Dim arrayIndex As Integer
Dim count As Integer
instance.CopyTo(index, array, arrayIndex, count)
public void CopyTo(
int ,
[] ,
int ,
int
)
Parameters
- index
- The zero-based index in the source ListBase<T> at which copying begins.
- array
- The one-dimensional System.Array that is the destination of the elements copied from ListBase<T>. The System.Array must have zero-based indexing.
- arrayIndex
- The zero-based index in array at which copying begins.
- count
- The count.
See Also